package com.example.bservice.controller;

import com.example.bservice.service.CServiceFeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class BController {

    @Resource
    private CServiceFeignClient cService;

    @GetMapping("/b")
    public String methodB(){
        String result = cService.methodC();
        result = "-> Service B" + result;
        return result;
    }
}
